<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Order List</title>
</head>
<body>
 <div id="content">
    <div id="tab" class="radius-top">
    {if $checknum != 0}  
    	Shoping List&nbsp;&nbsp;&nbsp;<span>Listing ({$total})</span>
      <div class="clear"></div></div>
     {$form_open}   

    <table width="837">
      <thead>
        <tr>
         
          <th bgcolor="#CCCCCC">Customer name</th>
          <th bgcolor="#CCCCCC">Room</th>
          <th bgcolor="#CCCCCC">Product name</th>
          <th bgcolor="#CCCCCC">Price </th>
          <th bgcolor="#CCCCCC">Qty</th>
          <th bgcolor="#CCCCCC">Total</th>
          <!--<th>Edit</th>-->        </tr>
      </thead>
      <tbody>
    
      {if $Num_Rows != 0}
      	{section name=index loop=$cat}
        <tr bgcolor="{$cat[index].back}">
        
          <td class="hotelInfo">{$cat[index].cname}</td>
          <td class="hotelInfo">{$cat[index].room}</td>
          <td class="hotelInfo">{$cat[index].pname}</td>
          <td class="hotelInfo">{$cat[index].price}</td>
          <td class="hotelInfo">{$cat[index].qty}</td>
          <td class="hotelInfo">{$cat[index].total_amount}</td>
          <!--<td><a href="{$url}manage_message/message_edit/{$cat[index].pkid}"><img src="{$url}images/edit-icon.png" width="20" height="20" /></a></td>-->        </tr>
        {/section}
         <tr>
         	<td colspan="5" align="right"><strong>TOTAL</strong></td>
        	<td colspan="1"><strong>{$gtotal}</strong></td>
        </tr>
      { else }
     	<tr>
          <td colspan="6" align="center">Empty</td>   
        </tr>
      { /if }
  {else} 
  <table>
  	<tr>
          <td colspan="6" align="center">ไม่พบข้อมูล</td>   
    </tr>
   </table> 
  {/if}    
      </tbody>
    </table>
    {$form_close}
  </div>
</body>
</html>